//#define __FORCE_TRACE__
//#define __FORCE_DEBUG__
//#define __FORCE_INFO__
#define THIS_FILE "fn_assignActions.sqf"
#include <btc_macros.h>
TRACE_1("Start",_this);

if (BTC_r_new_system == 0) then {
	if ([player] call FUNC(isClassCanRevive)) then {
		player addAction [RED_TEXT("First aid"),{(_this select 3) spawn FUNC(firstAid)},[], 8, true, true, "", "[] call BTCR_fnc_checkActionFirstAid"];
	};
} else {
	player addAction [RED_TEXT("Medical unit check"),{(_this select 3) spawn FUNC(checkUnitState)},[], 8, true, false, "", "[] call BTCR_fnc_checkActionUnitState"];
	player addAction [RED_TEXT("Check yourself"),{(_this select 3) spawn FUNC(checkUnitState)},[player], -8, false, false, "", "BTC_r_action_menu && format [""%1"",player getVariable ""BTC_need_revive""] == ""0"" && vehicle player == player"];
};
player addAction [RED_TEXT("Drag"),{(_this select 3) spawn FUNC(drag)},[], 8, true, true, "", "[] call BTCR_fnc_checkActionDrag"];
player addAction [RED_TEXT("Pull out injured"),{(_this select 3) spawn FUNC(pullOut)},[], 8, true, true, "", "[] call BTCR_fnc_pullOutCheck"];
player addAction [RED_TEXT("Carry"),{(_this select 3) spawn FUNC(carry)},[], 8, true, true, "", "[] call BTCR_fnc_checkActionDrag"];
TRACE("End");